package com.yuexunit.mobilenurse.module.SignInput.api;

import com.yuexunit.mobilenurse.base.bean.ActionBean;
import com.yuexunit.mobilenurse.module.SignInput.bean.YXSignsInput;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Query;
import rx.Observable;

/**
 * Created by sslcjy on 16/1/26.
 */
public interface SignInputApi {
    @GET("ydhl/sign/list")
    Observable<YXSignsInput> getBaseTypes(@Query("areaId") String areaId);

    @GET("ydhl/sign/all")
    Observable<YXSignsInput> getAllTypes(@Query("areaId") String areaId);

    @FormUrlEncoded
    @POST("ydhl/sign/offical/add")
    Observable<ActionBean> uploadSignInput(@FieldMap Map<String, String> praise);
}
